<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
    http://www.springframework.org/schema/context
    http://www.springframework.org/schema/context/spring-context-3.1.xsd">

	<context:component-scan base-package="br.com.membros.service" />

	<!-- Define o arquivo que é usado para buscar as informações de configuração. -->
	<bean class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer">
		<property name="location" value="file:./conf/membros-conf.properties" />
	</bean>						
	
	<bean id="remoteService" class="br.com.membros.service.Services"></bean>
	<bean name="remoteServiceBean" class="org.springframework.remoting.rmi.RmiServiceExporter">
		<property name="serviceName" value="remote-service" />
		<property name="service" ref="remoteService" />
		<property name="serviceInterface" value="br.com.membros.utils.service.interfaces.IServices" />
		<property name="registryPort" value="${remote.service.rmi.port}" />
	</bean>

	<!-- 
	
	<bean id="remoteAgendaService" class="br.com.membros.service.AgendaRMIService"></bean>
	<bean name="remoteAgendaServiceBean" class="org.springframework.remoting.rmi.RmiServiceExporter">
		<property name="serviceName" value="remote-agenda-service" />
		<property name="service" ref="remoteAgendaService" />
		<property name="serviceInterface" value="br.com.membros.utils.service.interfaces.IAgendaRMIService" />
		<property name="registryPort" value="${remote.service.rmi.port}" />
	</bean>		

	<bean id="remoteControleService" class="br.com.membros.service.ControleRMIService"></bean>
	<bean name="remoteControleServiceBean" class="org.springframework.remoting.rmi.RmiServiceExporter">
		<property name="serviceName" value="remote-controle-service" />
		<property name="service" ref="remoteControleService" />
		<property name="serviceInterface" value="br.com.membros.utils.service.interfaces.IControleRMIService" />
		<property name="registryPort" value="${remote.service.rmi.port}" />
	</bean>
		
	<bean id="remoteMembroService" class="br.com.membros.service.MembroRMIService"></bean>
	<bean name="remoteMembroServiceBean" class="org.springframework.remoting.rmi.RmiServiceExporter">
		<property name="serviceName" value="remote-membro-service" />
		<property name="service" ref="remoteMembroService" />
		<property name="serviceInterface" value="br.com.membros.utils.service.interfaces.IMembroRMIService" />
		<property name="registryPort" value="${remote.service.rmi.port}" />
	</bean>
				
	<bean id="remoteSalaService" class="br.com.membros.service.SalaRMIService"></bean>
	<bean name="remoteSalaServiceBean" class="org.springframework.remoting.rmi.RmiServiceExporter">
		<property name="serviceName" value="remote-sala-service" />
		<property name="service" ref="remoteSalaService" />
		<property name="serviceInterface" value="br.com.membros.utils.service.interfaces.ISalaRMIService" />
		<property name="registryPort" value="${remote.service.rmi.port}" />
	</bean>

	<bean id="remoteUsuarioService" class="br.com.membros.service.UsuarioRMIService"></bean>
	<bean name="remoteUsuarioServiceBean" class="org.springframework.remoting.rmi.RmiServiceExporter">
		<property name="serviceName" value="remote-usuario-service" />
		<property name="service" ref="remoteUsuarioService" />
		<property name="serviceInterface" value="br.com.membros.utils.service.interfaces.IUsuarioRMIService" />
		<property name="registryPort" value="${remote.service.rmi.port}" />
	</bean>
	-->
</beans>
